package com.example.livingadminmaster.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.livingadminmaster.pojo.Maintenance;

import java.util.List;

public interface MaintenanceServoice extends IService<Maintenance>{
    List<Maintenance> getAllMaintenance();
    Maintenance getMaintenanceById(long maintenance_id);
    Maintenance getMaintenanceByUsername(String username);
    int addMaintenance(Maintenance maintenance);
    boolean deleteMaintenanceById(long maintenance_id);
    int updateMaintenance(Maintenance maintenance);
    boolean updateMaintenanceStatus(long maintenance_id, boolean status);
}
